package day8.problem1;

import java.util.Scanner;

//求最小公倍数
//https://www.nowcoder.com/practice/22948c2cad484e0291350abad86136c3?tpId=37&tqId=21331&ru=/exam/oj

public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int x = in.nextInt();
        int y = in.nextInt();
        int a = x, b = y;
        int c = a % b;
        while(c != 0) {
            a = b;
            b = c;
            c = a % b;
        }
        int ret = (x * y) / b;
        System.out.println(ret);
    }
}

/*

6 15
a b c
15 6 3
6 3 0

*/